package com.gmall.search;

import org.springframework.amqp.rabbit.annotation.EnableRabbit;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
@ComponentScan({"com.gmall"})
@EnableDiscoveryClient
@EnableFeignClients(basePackages= {"com.gmall"})
@EnableScheduling
@EnableRabbit
public class ServiceSearchApplication {
    public static void main(String[] args) {

        SpringApplication.run(ServiceSearchApplication.class,args);
    }
}
